<?php


class HomepageText2Table extends Doctrine_Table
{
    
  public function getHomepageList()
  {
    return $this->createQuery('h')
      ->where('expires_at > ?', date('Y-m-d H:i:s'))
      ->orderBy('order')
      ->orderBy('expires_at desc')
      ->limit(6)
      ->execute();
  }
}